fix(security): allow TLS terminator Origin scheme skew for management - #779
Conversation
|
Warning Review limit reached
Next review available in: 18 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ca58f0bcf9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
[shipping-github] Merge-ready |
|
[shipping-github] Security sanity (redacted) — quick pass on TLS-terminator Origin handling.
No secrets or tokens logged in diff. |
Verdict: gated
|
|
Reviewed alongside the other open security-boundary work. The defect is real and this fixes it, but I would like a narrower version before it lands. The defect. Where the PR goes further than the report needs. It accepts a cross-scheme same-host relationship automatically, with no trusted-proxy setting. Raw callers and anything that can reach the backend directly can forge both The narrower shape. The repository already has widens only to origins the operator listed in Negative test either way. With a remote bind and Not closing — the diagnosis is right and the fix is close. @lidge-jun @Ingwannu for the security review that MAINTAINERS.md requires here. |
|
[shipping-github] Addressed owner feedback — narrowed management Origin admission to corsAllowOrigins only (removed automatic cross-scheme Host match). |
|
Ready to merge @lidge-jun @Ingwannu |
Fixes #760
Only allow https-to-http terminator skew for matching public ports (or the 443/80 default pair) and reject unrelated cross-port origins.
Drop automatic cross-scheme Host matching so management origin widens only to origins the operator listed, matching the reported reverse-proxy setup without a default change for other deployments.
The permanent spawn/dynamic-tool cleanup assertion hit Bun's default 5s timeout on windows-latest for PR #779; give it STORE_BUDGET_MS like the other SQLite cleanup paths.
d92da4e to
208cbe0
Compare
Ingwannu
left a comment
There was a problem hiding this comment.
Reviewed current head 208cbe0 against current dev. The earlier automatic cross-scheme Host relaxation is gone: admission expands only to exact operator-declared corsAllowOrigins, while admin-token authentication, GUI session origin equality, and CSRF remain unchanged. Focused origin/auth tests (20) and typecheck pass locally. Maintainer auth-boundary sign-off: approved.
Summary
Fixes #760
Allows TLS terminator Origin scheme skew for management API requests.
Security
Credential-aware / corsAllowOrigins; session origin+CSRF unchanged.
Test plan